 // This is C++ code

#include "cppTutorLog.h"
extern CcppTutorLog Log;
 
#include "cppTutorMixing_C_CPP_Common.h"
 
Fred :: Fred() : a_(0) 
{
    Log << "ENTER : Fred::Fred()" << endl;
    Log << "EXIT  : Fred::Fred()" << endl;
}
 
void Fred :: wilma(int a) 
{
    Log << "ENTER : Fred :: wilma()" << endl;
    Log << "EXIT  : Fred :: wilma()" << endl;
}
 
Fred* cplusplus_callback_function(Fred* fred)
{
    Log << "ENTER : cplusplus_callback_function()" << endl;
    fred->wilma(123);
    Log << "EXIT  : cplusplus_callback_function()" << endl;
    return fred;
}